package com.aks.student.career.dao;

import java.io.Serializable;
import java.util.List;

/**
 * User: tr1a6333
 * Date: 22.07.2011
 * Time: 14:17
 */
public interface GenericDAO<T, ID extends Serializable> {

    public T loadById(ID id);

    public ID save(T obj);

    public void update(T obj);

    public void delete(T obj);

    public List<T> findAll(Class persistanceClass);

    public T findById(Class persistanceClass, ID id);

}
